<div class="search-box">
	<form class="search_form layui-form" lay-filter="article_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">分类</label>
			<div class="layui-input-inline">
				<select name="artclass_id" lay-filter="artclass_id">
					<option value="">全部</option>
					{volist name="getArtclass" id="list"}
						<option value="{$list.artclass_id}">{$list.artclass_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-inline">
				<input type="text" name="article_name" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<table class="layui-hide" id="article_list" lay-filter="article_list"></table>
<script>
	var article_list_url = "{:url('article/ajaxList')}";
	var article_delete_url = "{:url('article/ajaxDelete')}";
	var article_one_url = "{:url('article/ajaxOneData')}";
	var article_save_url = "{:url('article/saveData')}";
	var article_cols = {$cols};
</script>
<script type="text/html" id="articleToolbar">
  <div class="layui-btn-container">
    <a type="button" data-id="add_article" data-url="{:url('article/tplForm')}" data-title="新增文章" class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="addArticle"><i class="layui-icon layui-icon-add-1"></i>新增</a>
    <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="delArticle"><i class="layui-icon layui-icon-delete"></i>删除</button>
  </div>
</script>
<script type="text/html" id="article_tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs tap-nav" lay-event="edit" data-id="edit_article_{{ d.article_id }}" data-url="{:url('article/tplForm')}?article_id={{ d.article_id}}" data-title="修改文章"><i class="layui-icon layui-icon-edit"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>
<script type="text/html" id="home_pushTpl">
	{{# if(d.home_push == 1 || d.home_push == true){ }}
	<input type="checkbox" name="home_push" lay-skin="switch" checked lay-text="是|否" disabled=""> {{# } else { }}
	<input type="checkbox" name="home_push" lay-skin="switch" lay-text="是|否" disabled=""> {{# } }}
</script>
<script src="/static/js/article/article.js" type="text/javascript" charset="utf-8"></script>